package com.yuanfeng.activity.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yuanfeng.activity.dto.JoinVoucherActivityDTO;
import com.yuanfeng.activity.dto.VoucherTemplateUpdateDTO;
import com.yuanfeng.activity.entity.ActivityVoucherTemplateEntity;
import com.yuanfeng.commoms.util.ResponseResult;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

/**
 * 代金券模版
 */
public interface ActivityVoucherTemplateService extends IService<ActivityVoucherTemplateEntity> {

    /**
     * 商家后台：查询优惠券信息
     *
     */
    ResponseResult selectVoucherTemp(@RequestBody Map<String, Object> paraMap);

    /**
     * 商家后台：删除代金券信息 1.1将删除代金券改为修改代金券状态
     * @param paraMap
     * @return
     */
    ResponseResult deleteVoucherTemp(@RequestBody Map<String, String> paraMap);

    /**
     * 商家后台：插入代金券模板
     * @param param
     * @return
     */
    ResponseResult insertVoucherTemp(VoucherTemplateUpdateDTO param);

    /**
     * 查询可报名的优惠券活动
     * @return
     */
    ResponseResult queryPlatformVoucherList(Map<String,String> param);

    /**
     * 商家参加优惠券活动
     * @param param
     * @return
     */
    ResponseResult joinVoucherActivity(JoinVoucherActivityDTO param);

    /**
     * 优惠商品
     * @param param
     * @return
     */
    ResponseResult queryVoucherGoods(JoinVoucherActivityDTO param);


    /**
     * 平删除 店铺优惠券
     *
     * @param paraMap
     * @return
     */
    ResponseResult deleteSalesPromotionVoucher(Map<String, String> paraMap);

    /**
     * 平台查询 店铺优惠券详情
     *
     * @param paraMap
     * @return
     */
    ResponseResult salesPromotionVoucherDetail(Map<String, Object> paraMap);

    /**
     * 平台查询 店铺优惠券列表
     *
     * @param paraMap
     * @return
     */
    ResponseResult salesPromotionVoucherList(Map<String, Object> paraMap);



    /**
     * 平台修改 店铺优惠券修改
     *
     * @param paraMap
     * @return
     */

    ResponseResult salesPromotionVoucherUpdate(Map<String, Object> paraMap);

}
